package com.it.mapper;

import org.apache.ibatis.annotations.Mapper;
import com.it.pojo.DDepartment;

import java.util.List;

@Mapper
public interface DDepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DDepartment record);

    int insertSelective(DDepartment record);

    DDepartment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DDepartment record);

    int updateByPrimaryKey(DDepartment record);
    //查询所有
    List<DDepartment> selectQueryAll();
    //根据科室名称查询
    List<DDepartment> selectLikeName(String name);
}